package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ChargersMapper;
import com.ruoyi.system.domain.Chargers;
import com.ruoyi.system.service.IChargersService;

/**
 * 充电桩类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-12
 */
@Service
public class ChargersServiceImpl implements IChargersService 
{
    @Autowired
    private ChargersMapper chargersMapper;

    /**
     * 查询充电桩类型
     * 
     * @param cid 充电桩类型主键
     * @return 充电桩类型
     */
    @Override
    public Chargers selectChargersByCid(Long cid)
    {
        return chargersMapper.selectChargersByCid(cid);
    }

    /**
     * 查询充电桩类型列表
     * 
     * @param chargers 充电桩类型
     * @return 充电桩类型
     */
    @Override
    public List<Chargers> selectChargersList(Chargers chargers)
    {
        return chargersMapper.selectChargersList(chargers);
    }

    /**
     * 新增充电桩类型
     * 
     * @param chargers 充电桩类型
     * @return 结果
     */
    @Override
    public int insertChargers(Chargers chargers)
    {
        return chargersMapper.insertChargers(chargers);
    }

    /**
     * 修改充电桩类型
     * 
     * @param chargers 充电桩类型
     * @return 结果
     */
    @Override
    public int updateChargers(Chargers chargers)
    {
        return chargersMapper.updateChargers(chargers);
    }

    /**
     * 批量删除充电桩类型
     * 
     * @param cids 需要删除的充电桩类型主键
     * @return 结果
     */
    @Override
    public int deleteChargersByCids(Long[] cids)
    {
        return chargersMapper.deleteChargersByCids(cids);
    }

    /**
     * 删除充电桩类型信息
     * 
     * @param cid 充电桩类型主键
     * @return 结果
     */
    @Override
    public int deleteChargersByCid(Long cid)
    {
        return chargersMapper.deleteChargersByCid(cid);
    }
}
